package com.cqjtu.eecs.mapper;

import com.cqjtu.eecs.entity.UserPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqjtu.eecs.entity.vo.RouterVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户-权限 Mapper 接口
 * </p>
 *
 * @author     luojun
 * @since 2022-03-04
 */
@Mapper
@Repository
public interface UserPermissionMapper extends BaseMapper<UserPermission> {

    /**
     * 根据uid获取用户特有的权限路由
     * @param uid
     * @return
     */
    Set<RouterVo> getUserPermission(Integer uid);
}
